<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="wrap">
        <ul class="img-list J_imgList"></ul>
    </div>
    <div style="display: none" id="J_data">
        [{"img":"images/1.jpg","name":"图片1"}, {"img":"images/2.jpg","name":"图片2"}, {"img":"images/3.jpg","name":"图片3"}, {"img":"images/4.jpg","name":"图片4"}, {"img":"images/5.jpg","name":"图片5"}, {"img":"images/6.jpg","name":"图片6"}, {"img":"images/7.jpg","name":"图片7"},
        {"img":"images/8.jpg","name":"图片8"}, {"img":"images/9.jpg","name":"图片9"}, {"img":"images/10.jpg","name":"图片10"}, {"img":"images/11.jpg","name":"图片11"}, {"img":"images/12.jpg","name":"图片12"}]
    </div>
    <script type="text/html" id="J_imgTpl">
        <li class="img-item">
            <div class="img-wrap">
                <img src="images/d.png" class="list-img" data-src="{{img}}" alt="{{name}}">
            </div>
            <div class="img-tt">
                <h1>{{name}}</h1>
            </div>
        </li>
    </script>
    <script src="./js/index.js"></script>
</body>

</html>